package core.sub;

import core.obj.Object;
import core.obj.Resume;

public class Employee implements Subject {

	private String id;
	private Resume resume;	// resume of the employee
	
	public void setID(String id){
		this.id = id;
	}
	
	public String getID() {
		return id;
	}

	public boolean equals(java.lang.Object obj) {
		if(obj instanceof Employee){
			Employee C = (Employee)obj;
			if(C.getID().equals(id)) {
				return true;
			}
		}
		return false;
	}

	public void setResume(Resume resume) {
		this.resume = resume;
	}

	public Resume getResume() {
		return resume;
	}

	@Override
	public Object findObject(String objID) {
		if(resume != null) {
			if(resume.getID().equals(objID)) {
				return resume;
			}
		}
		return null;
	}
	
}


